#ifndef __WPTH_MAINPAGE_H__
#define __WPTH_MAINPAGE_H__

#include "defs.h"
#include "wx/datetime.h"
#include "artpanel.h"
#include "artstatictext.h"
#include "artbitmapbutton.h"
#include "artbutton.h"

///////////////////////////////////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////////////
/// Class MainPage
///////////////////////////////////////////////////////////////////////////////
class MainPage : public ArtPanel
{
private:

protected:
	ArtPanel* m_panel12;
	ArtBitmapButton* m_btnMainPage;
	ArtStaticText* m_stTitle;
	ArtButton* m_btnTime;
	ArtBitmapButton* m_btnMonitorPage;
	ArtBitmapButton* m_btnReservationPage;
	ArtBitmapButton* m_btnProgramPage;
	ArtBitmapButton* m_btnOperationSetting;
	ArtBitmapButton* m_btnPlotPage;
	ArtBitmapButton* m_btnPageSetting;

	// Virtual event handlers, overide them in your derived class
	void OnBtnMainPage( wxCommandEvent& event );
	void OnBtnTime( wxCommandEvent& event );
	void OnBtnMonitorPage( wxCommandEvent& event );
	void OnBtnReservationPage( wxCommandEvent& event );
	void OnBtnProgramPage( wxCommandEvent& event );
	void OnBtnOperationSetting( wxCommandEvent& event );
	void OnBtnPlotPage( wxCommandEvent& event );
	void OnBtnPageSetting( wxCommandEvent& event );


public:

	MainPage( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 480,272 ), long style = wxMAXIMIZE|wxTAB_TRAVERSAL );

	~MainPage();

	void UpdateTime(const wxDateTime& dt = wxDateTime::Now());
};
#endif